import api from '@/api/proxy'

export const getTextList = (params) => {
    return api.get('/tv/list', {
        params: {
            user_id: params.user_id,
            file_id: params.file_id,
            kb_id: params.kb_id,
            page: params.page || 1,
            page_size: params.page_size || 10
        }
    })
}

export const deleteSingleText = (vector_id) => {
    return api.delete('/tv/delete', {
        params: {
            vector_id:vector_id
        }
    })
}

export const updateTextContent = (vector_id, text_content) => {
    return api.put('/tv/update', null, {
        params: {
            vector_id: vector_id,
            text_content: text_content
        }
    })
}

